From: Monica Chelliah Date: Sun, 14 Apr 2013 20:15:04 +0000 (-0400) Subject: Only recognize common url schemes in notification messages X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4254 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=608818fa9f3f748d92e6881ab3d8f3c093e197cd;p=gnome-shell.git Only recognize common url schemes in notification messages Before the fix, the message tray highlighted all urls containing "://", even invalid ones. This change fixes this by have the message tray highlight only the urls with http, https, ftp schemes. Credit goes to: Phuong Vu, Liye Fu, Monica Chelliah, Owen Taylor https://bugzilla.gnome.org/show_bug.cgi?id=661225 --- diff --git a/js/misc/util.js b/js/misc/util.js index 15edc37ef..3864ae59f 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -18,7 +18,7 @@ const _urlRegexp = new RegExp( '(^|' + _leadingJunk + ')' + '(' + '(?:' + - '[a-z][\\w-]+://' + // scheme:// + '(?:http|https|ftp)://' + // scheme:// '|' + 'www\\d{0,3}[.]' + // www. '|' +